package com.strong.model;

import cn.hutool.core.util.StrUtil;
import lombok.Getter;

/**
 * 省级单位 模型
 *
 * @author Administrator
 * @date 2023/04/09
 */
@Getter
public class ProvinceUnit extends BaseModel {

    private Place place;

    private String name;

    private String fullName;

    public ProvinceUnit(Place place) {
        this.place = place;
        this.fullName = place.getProvince();
        this.name = StrUtil.removeAny(place.getProvince(),
                "壮族自治区", "维吾尔自治区");

    }
}
